package com.liu.community.dto;/*
 *@Author:Liu Xing-zhi
 *Description:
 *Date:Crated in 14:04 2021/11/11
 */

import lombok.Data;

@Data
public class HotTagDto implements  Comparable{
    private  String name;
    private  Integer priority;

    @Override
    public int compareTo(Object o) {
        return this.getPriority() - ((HotTagDto)o).getPriority();
    }
}
